<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>会员卡详细信息</title>
<meta name="decorator" content="default" />
<style>
fieldset {
	display: inline-block;
	width: 80%;
}
</style>
</head>
<body>
	<nav data-role="navbar">
		<ul>
			<li><a data-ajax="false"
				href="${ctx}/cash/member/info?id=${member.customer.id}"
				class="ui-btn-active">会员基本信息</a></li>
			<li><a data-ajax="false"
				href="${ctx}/cash/member/cardsInfo?id=${member.customer.id}">会员卡信息</a></li>
			<li><a data-ajax="false"
				href="${ctx}/cash/member/historyConsumeList?id=${member.customer.id}">会员消费信息</a></li>
		</ul>
	</nav>
	<div class="container form-input">
		<div class="icon-buttons">
			<input type="button" data-inline="true" data-icon="back"
				onclick="return directOpenURL('${ctx}/cash/member/detail?id=${member.customer.id}')"
				data-iconpos="notext" value=" 返回" />
		</div>

		<label><strong>基本资料</strong> </label>
		<hr />
		<fieldset>
			<div data-role="fieldcontain">
				<label data-inline="true">姓名：</label> <label data-inline="true">${member.customer.name}</label>
			</div>
			<div data-role="fieldcontain">
				<label data-inline="true">备注名：</label> <label data-inline="true">${member.customer.nickname}</label>
			</div>
			<div data-role="fieldcontain">
				<label>性别：</label> <label>${member.customer.gender==0?'女':'男'}</label>
			</div>
			<div data-role="fieldcontain">
				<label>年龄：</label> <label>${fns:getAge(member.customer.birthday)}</label>
			</div>
		</fieldset>
		<label><strong>联系方式</strong> </label>
		<hr />
		<fieldset>

			<div data-role="fieldcontain">
				<label>手机号码：</label> <label>${member.customer.mobile}</label>
			</div>
			<div data-role="fieldcontain">
				<label>固定电话：</label> <label>${member.customer.phone}</label>
			</div>
			<div data-role="fieldcontain">
				<label>电子邮箱：</label> <label>${member.customer.email}</label>
			</div>
			<div data-role="fieldcontain">
				<label>地址：</label> <label>${member.customer.address}</label>
			</div>
		</fieldset>

		<label><strong>家庭状况</strong> </label>
		<hr />
		<fieldset>
			<div data-role="fieldcontain">
				<label>婚姻状况：</label> <label>${member.customer.marry==0?'未婚':'已婚'}</label>
			</div>
			<div data-role="fieldcontain">
				<label>孩子数量：</label> <label>${member.customer.childs}</label>
			</div>
			<div data-role="fieldcontain">
				<label>居住环境：</label> <label> <c:choose>
						<c:when test="${member.customer.live_condition==0}">安静</c:when>
						<c:when test="${member.customer.live_condition==1}">普通</c:when>
						<c:when test="${member.customer.live_condition==2}">嘈杂</c:when>
					</c:choose>
				</label>
			</div>
			<div data-role="fieldcontain">
				<label>工作场所：</label> <label>${member.customer.workplace==0?'户外工作':'室内工作'}
				</label>
			</div>
		</fieldset>
		<label><strong>专属美容师 </strong></label>
		<hr />
		<fieldset>
			<div data-role="fieldcontain">
				<c:forEach items="${member.customerEmployeeRelationships}"
					var="ship">
					<label>${ship.employee.name}</label>
				</c:forEach>
			</div>
		</fieldset>
	</div>
</body>
</html>
